package servicios;

import classes.Usuario;

public class DeleteBuildingService extends AbstractService{
	private String user;
	private int idPosicionable;
	
	public void borrarPosicionable(String alias, int id){
		user = alias;
		idPosicionable = id;
		this.execute();
	}
	
	@Override
	public void doYourMagic() {
		Usuario user1 = this.getDao().getUsuarioPorAlias(user);
		user1.removeBuilding(idPosicionable);
	}

}
